package com.foreknow.demo6;

import java.util.NoSuchElementException;

public class PersonImpl extends Person {

    @Override
    public boolean login(String username, String password) {
        return false;
    }

    @Override
    public boolean sign(String username, String password) {
        return false;
    }

    @Override
    public Person SelectById(int id) {
        return null;
    }

    @Override
    public Person[] SelectAll() {
        return new Person[0];
    }

    @Override
    public int DeleteById(int id) {
        return 0;
    }

    public static void main(String[] args) {
        Person person = new PersonImpl();
        boolean isRight = person.login("tom","123456");
        if (isRight){
            System.out.println("登录成功......");
        }else {
            System.out.println("登陆失败......");
        }

        int i = person.DeleteById(100);
        if (i==1){
            System.out.println("删除成功");
        }else {
            System.out.println("error");
        }
    }
}
